package com.demo.text;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;

public class TestChromDriver {

	public static void main(String[] args) {
		System.getProperties().setProperty("webdriver.chrome.driver", "G:/Plugin/chromedriver.exe");
        WebDriver webDriver = new ChromeDriver();
        webDriver.get("http://www.goubanjia.com/free/gngn/index.shtml");
        WebElement webElement = webDriver.findElement(By.xpath("/html"));
        System.out.println(webElement.getAttribute("outerHTML"));
        webDriver.close();
	}
}
